const { http } = uni.$u

// 近期报价 列表
export const getNearJoinList = (params,config = {}) => http.get('/addons/bjjb/api.quote/recentJoinList',params,config);

// 获取  我参与的 列表
export const getMyJoinList = (params,config = {}) => http.get(`/addons/bjjb/api.quote/joinList?page=${params.page}&list_rows=${params.list_rows}`,params,config);

// 获取  我中选的 列表
export const getMyWinList = (params,config = {}) => http.get(`/addons/bjjb/api.quote/winList?page=${params.page}&list_rows=${params.list_rows}`,params,config);

// 获取  项目广场 列表
export const getProgramList = (params,config = {}) => http.get(`/addons/bjjb/api.bid/getBids?page=${params.page}&list_rows=${params.list_rows}&type=${params.type}`,params,config);

// 获取  项目详情
export const getProgramDetail = (params,config = {}) => http.get(`/addons/bjjb/api.bid/getBidDetail?bid_id=${params.bid_id}`,params,config);

// 获取 自身项目报价
export const getProgramQuotation = (params,config = {}) => http.get(`/addons/bjjb/api.quote/getQuote?bid_id=${params.bid_id}`,params,config);

// 提交项目报价
export const saveQuotation = (params,config = {}) => http.post('/addons/bjjb/api.quote/saveQuote',params,config);